home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Singing Fun! / Sunday Savers: Singing Fun!.iso / mac / Xtras / Buddy API 3.7 / Buddy API Docs.swf / texts / 1508.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  2.2 KB  |  95 lines

  1. 116
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. DeleteXFiles 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows and Macintosh
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baDeleteXFiles deletes files with wildcard matching.
  20. --- RECORDSEPARATOR ---
  21.  
  22. --- RECORDSEPARATOR ---
  23. Usage:
  24. --- RECORDSEPARATOR ---
  25.  
  26. --- RECORDSEPARATOR ---
  27. Result = baDeleteXFiles( DirName , FileSpec )
  28. --- RECORDSEPARATOR ---
  29.  
  30. --- RECORDSEPARATOR ---
  31. Arguments:
  32. --- RECORDSEPARATOR ---
  33.  
  34. --- RECORDSEPARATOR ---
  35. String, String. 
  36. --- RECORDSEPARATOR ---
  37. DirName is the folder to delete the files from. 
  38. --- RECORDSEPARATOR ---
  39. FileSpec determines what files are deleted.
  40. --- RECORDSEPARATOR ---
  41.  
  42. --- RECORDSEPARATOR ---
  43. Returns:
  44. --- RECORDSEPARATOR ---
  45.  
  46. --- RECORDSEPARATOR ---
  47. Integer. 
  48. --- RECORDSEPARATOR ---
  49. Returns 1 if all the matching files were successfully deleted or if DirName doesn't 
  50. --- RECORDSEPARATOR ---
  51. exist, else 0.
  52. --- RECORDSEPARATOR ---
  53.  
  54. --- RECORDSEPARATOR ---
  55. Examples:
  56. --- RECORDSEPARATOR ---
  57.  
  58. --- RECORDSEPARATOR ---
  59. Director: 
  60. --- RECORDSEPARATOR ---
  61. set OK = baDeleteXFiles( "c:\data" , "*.bak" ) 
  62. --- RECORDSEPARATOR ---
  63. set OK = baDeleteXFiles( "Mac HD:data", "TEXT" ) 
  64. --- RECORDSEPARATOR ---
  65. Authorware: 
  66. --- RECORDSEPARATOR ---
  67. OK := baDeleteXFiles( "c:\\data , "*.bak" ) 
  68. --- RECORDSEPARATOR ---
  69. OK := baDeleteXFiles( "Mac HD:data", "TEXT" )
  70. --- RECORDSEPARATOR ---
  71.  
  72. --- RECORDSEPARATOR ---
  73. Notes:
  74. --- RECORDSEPARATOR ---
  75.  
  76. --- RECORDSEPARATOR ---
  77. On
  78. --- RECORDSEPARATOR ---
  79.  Windows
  80. --- RECORDSEPARATOR ---
  81. , the FileSpec argument follows normal DOS wildcard rules. A * 
  82. --- RECORDSEPARATOR ---
  83. means match any character in the file name. So *.* deletes all files in the directory; 
  84. --- RECORDSEPARATOR ---
  85. *.bmp deletes all files with a .bmp extension; T*.* deletes all files starting with the 
  86. --- RECORDSEPARATOR ---
  87. letter T. 
  88. --- RECORDSEPARATOR ---
  89. On
  90. --- RECORDSEPARATOR ---
  91.  Macintosh
  92. --- RECORDSEPARATOR ---
  93. , the Filespec is the four character type code eg "TEXT". Only one 
  94. --- RECORDSEPARATOR ---
  95. type can be specified. Use an empty string or "*.*" to match all files.